Welcome to the Number guessing game. I'll pick a random number between 0 and 100. You try to guess it in as few tries as you can.
[[Play]]
(set: $tries to 0)
(set: $goal to (random: 0,100))$guess is too high, [[try again ->Play]]
Congradulations it was $goal
you got it right in $tries guesses
(set: $guess to (prompt: "What number do you guess?", "0"))
(set: $tries to it +1)
(set: $guess to (num: $guess))
(if: $guess is $goal) [(goto: "Correct")]
(if: $guess < $goal) [(goto: "Low")]
(if: $guess > $goal) [(goto: "High")]
$guess is too low, [[try again ->Play]]